export default class comment {
  action: number;
  rpid: number;
  oid: number;
  type: number;
  mid: number;
  root: number;
  parent: number;
  count: number;
  rcount: number;
  like: number;
  floor: number;
  state: number;
  ctime: number;
  rpidStr: string;
  member: commentMember;
  content: commentContent;
  loadPage: number = 1;
  replyText: string;
  showTop: boolean = false;
  replies: Array<comment>;
}

export class commentMember {
  mid: string;
  uname: string;
  sex: string;
  sign: string;
  avatar: string;
  level_info: commentMember;
  current_level: number;
  pendant?: commentMember;
  pid: number;
  name: string;
  image: string;
  official_verify: commentMember;
  type: number;
  desc: string;
  vip: commentMember;
  vipType: number;
}

export class commentContent {
  message: string;
  plat: number;

  get platStr() {
    switch (this.plat) {
      case 2:
        return "来自 Android";
      case 3:
        return "来自 IOS";
      case 4:
        return "来自 WindowsPhone";
      case 6:
        return "来自 Windows";
      default:
        return '';
    }
  }

  device: string;
  emote: any;
}